This is a simple debugger for javascript... allowing the viewing of whole objects instead of just variable names, without the complexities and problems caused alert.

It's not finished, it's not tested... for more on using json, go to www.json.org/js.html

Remember, it's a debug script, you can just comment out the lines containing debug() to run the final version.
You can also use debugdiv in place of debug for the function name so you can do a quick search and replace.

Also, it wasn't created to just debug JSON, you should be able to debug any javascript object that can be converted to a string.  Meaning it's useful for everyone.  Enjoy.

Oh and it uses JSON2...
https://github.com/douglascrockford/JSON-js/blob/master/json2.js

function debug(in,div).
{
   var unimportant;
   yotz = num.toString(1000 + div);
   document.getElemetById("debugDiv" + yotz.slice(1)).innerText=JSON.stringify(in);
}

function debug(in)
{
   document.getElemetById("debugDiv000").innerText=JSON.stringify(in);
} // a shorter method.

<noscript>
<html>
   <body>
       <div id="debugDiv000" style="height:100;width:240">I'm oh so texty!</div>
   </body>
</html>
</noscript>
